Flash Article

Updating a Database Using Flash MX Professional 2004


Table of Contents

  1. Introduction
  2. The Basics
  3. Update Packets in Detail
  4. Result Packets in Detail
  5. A Sample Update Packet Parser
  6. Setting up the ColdFusion Component
  7. Building the Flash Application
  8. Summary

Setting up the ColdFusion Component

To set up the ColdFusion component, follow these steps:

  1. Save the Access database file TimeTrax.mdb in a folder (for example, C:\RDBMS_CFC\TimeTrax.mdb)
  2. Add a ColdFusion Data Source for the TimeTrax.mdb file.

    1. Open ColdFusion administrator.
    2. Click the Data Sources link.
    3. Type TimeTrax in the Data Source Name text box, select Microsoft Access from the Driver combo box, and click the Add button.
    4. Click the Browse button and navigate to the TimeTrax.mdb.
    5. Click the Submit button.
    6. Verify that the new Data Source has a status of OK.
  3. Save the RDBMSProcessor.cfc file into the web root of your ColdFusion directory.

    • In version 6.0, put the file in the wwwroot directory under your ColdFusion install directory.
    • In version 6.1, put it in the JRun4\servers\cfusion\cfusion-ear\cfusion-war directory.

Note: The sample ColdFusion Component gives you the ability to run a query statement against any ColdFusion data source that you have set up on your machine. You should install it to the web root folder only within a development environment behind a secure firewall or on a computer that is not connected to the Internet! If you intend to use this component in a production environment you must take the necessary steps to secure it.